export function setValue(key, value) {
  //存储
  localStorage.setItem(key, JSON.stringify(value));
}

export function getValue(key) {
  const data = localStorage.getItem(key);
  if (!data) {
    return false;
  }
  return JSON.parse(data);
}
